package javaapplication1;

class ThreadDeo{
    public static void main(String[] args) throws InterruptedException {
        int count=0;
        for (int i = 0; i < 20; i++) {
            System.out.println("hello");
            if(count==5){
               Thread.sleep(2000);
            }
            count++;
        }
    }




}